
data = open('test_role.cv').readlines()
data1 = open('test.cv.seg').readlines()
out = open('test.cv','w')

for i in range(len(data)):
    #print data1[i].strip() + '\t' +data[i].split('\t')[1],
    out.write(data1[i].strip() + '\t' +data[i].split('\t')[1].strip() + '\n')
out.close()
